using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
namespace WPFExcelReport
{
    public partial class VPRART
    {
        public DataRow Convert2PRART(DataRow dwInput, string ITXDBVERSION, bool IsConvert = false)
        {
            DataSet SResult = new DataSet();
            SResult = QueryPRART(dwInput, 0);
            DataRow dwReturn = null;
            if (SResult.Tables[0].Rows.Count > 0)
            {
                dwReturn = SResult.Tables[0].Rows[0];
            }
            else
            {
                dwReturn = SResult.Tables[0].NewRow();
            }
            switch (ITXDBVERSION)
            {
                case "YGR":
                    #region=========
         dwReturn["PRAMANDANT"] = " ".PadRight(2 ); 
         dwReturn["PRAKOLL"] = " ".PadRight(5 ); 
         dwReturn["PRAPRGRP"] = " ".PadRight(8 ); 
         dwReturn["PRALFDNR"] = " ".PadRight(3 ); 
         dwReturn["PRAART"] = " ".PadRight(24 ); 
         dwReturn["PRAZUSCHL"] = " ".PadRight(10 ); 
         dwReturn["PRABEZ"] = " ".PadRight(20 ); 
         dwReturn["PRASTKZ1"] = " ".PadRight(1 ); 
         dwReturn["PRASTMENGE1"] = " ".PadRight(0 ); 
         dwReturn["PRASTKZ2"] = " ".PadRight(1 ); 
         dwReturn["PRASTMENGE2"] = " ".PadRight(0 ); 
         dwReturn["PRASTKZ3"] = " ".PadRight(1 ); 
         dwReturn["PRASTMENGE3"] = " ".PadRight(0 ); 
         dwReturn["PRASTKZ4"] = " ".PadRight(1 ); 
         dwReturn["PRASTMENGE4"] = " ".PadRight(0 ); 
         dwReturn["PRASTKZ5"] = " ".PadRight(1 ); 
         dwReturn["PRASTMENGE5"] = " ".PadRight(0 ); 
         dwReturn["PRAFCANZ1"] = " ".PadRight(0 ); 
         dwReturn["PRAFCKG1"] = " ".PadRight(0 ); 
         dwReturn["PRAFCANZ2"] = " ".PadRight(0 ); 
         dwReturn["PRAFCKG2"] = " ".PadRight(0 ); 
         dwReturn["PRAFCANZ3"] = " ".PadRight(0 ); 
         dwReturn["PRAFCKG3"] = " ".PadRight(0 ); 
         dwReturn["PRAFCANZ4"] = " ".PadRight(0 ); 
         dwReturn["PRAFCKG4"] = " ".PadRight(0 ); 
         dwReturn["PRAFCANZ5"] = " ".PadRight(0 ); 
         dwReturn["PRAFCKG5"] = " ".PadRight(0 ); 
         dwReturn["PRAPREH"] = " ".PadRight(3 ); 
         dwReturn["PRASTWERT1"] = " ".PadRight(0 ); 
         dwReturn["PRASTWERT2"] = " ".PadRight(0 ); 
         dwReturn["PRASTWERT3"] = " ".PadRight(0 ); 
         dwReturn["PRASTWERT4"] = " ".PadRight(0 ); 
         dwReturn["PRASTWERT5"] = " ".PadRight(0 ); 
         dwReturn["PRAABSP"] = " ".PadRight(0 ); 
         dwReturn["PRAABSA"] = " ".PadRight(0 ); 
         dwReturn["PRAABSART"] = " ".PadRight(3 ); 
         dwReturn["PRAZUCP"] = " ".PadRight(0 ); 
         dwReturn["PRAZUCA"] = " ".PadRight(0 ); 
         dwReturn["PRAZUCART"] = " ".PadRight(3 ); 
         dwReturn["PRAZURP"] = " ".PadRight(0 ); 
         dwReturn["PRAZURA"] = " ".PadRight(0 ); 
         dwReturn["PRAZURART"] = " ".PadRight(3 ); 
         dwReturn["PRAZU1WERT"] = " ".PadRight(0 ); 
         dwReturn["PRAZU1ART"] = " ".PadRight(3 ); 
         dwReturn["PRAZU1TYP"] = " ".PadRight(1 ); 
         dwReturn["PRAZU1ME"] = " ".PadRight(3 ); 
         dwReturn["PRAZU2WERT"] = " ".PadRight(0 ); 
         dwReturn["PRAZU2ART"] = " ".PadRight(3 ); 
         dwReturn["PRAZU2TYP"] = " ".PadRight(1 ); 
         dwReturn["PRAZU2ME"] = " ".PadRight(3 ); 
         dwReturn["PRAVGUET"] = " ".PadRight(1 ); 
         dwReturn["PRABONKZ"] = " ".PadRight(1 ); 
         dwReturn["PRARABKZ"] = " ".PadRight(1 ); 
         dwReturn["PRACOFAEH"] = " ".PadRight(1 ); 
         dwReturn["PRAKEINEPRF"] = " ".PadRight(1 ); 
         dwReturn["PRAZUART1"] = " ".PadRight(1 ); 
         dwReturn["PRAZULESEKZ1"] = " ".PadRight(1 ); 
         dwReturn["PRAZUART2"] = " ".PadRight(1 ); 
         dwReturn["PRAZULESEKZ2"] = " ".PadRight(1 ); 
         dwReturn["PRAZUART3"] = " ".PadRight(1 ); 
         dwReturn["PRAZULESEKZ3"] = " ".PadRight(1 ); 
         dwReturn["PRAZUART4"] = " ".PadRight(1 ); 
         dwReturn["PRAZULESEKZ4"] = " ".PadRight(1 ); 
         dwReturn["PRAZUART5"] = " ".PadRight(1 ); 
         dwReturn["PRAZULESEKZ5"] = " ".PadRight(1 ); 
         dwReturn["PRAZUART6"] = " ".PadRight(1 ); 
         dwReturn["PRAZULESEKZ6"] = " ".PadRight(1 ); 
         dwReturn["PRARART"] = " ".PadRight(24 ); 
         dwReturn["PRAPREISUG"] = " ".PadRight(0 ); 
         dwReturn["PRAORDER"] = " ".PadRight(4 ); 
         dwReturn["PRAORDDAT"] = " ".PadRight(0 ); 
         dwReturn["PRAORDBEN"] = " ".PadRight(8 ); 
         dwReturn["PRAINDEX1"] = " ".PadRight(2 ); 
         dwReturn["PRAINDEX2"] = " ".PadRight(2 ); 
         dwReturn["PRAINDEX3"] = " ".PadRight(2 ); 
         dwReturn["PRAINDEX4"] = " ".PadRight(2 ); 
         dwReturn["PRAMEVP"] = " ".PadRight(0 ); 
         dwReturn["PRAMEVPMIN"] = " ".PadRight(0 ); 
         dwReturn["PRASTPROV"] = " ".PadRight(0 ); 
         dwReturn["PRASTFRACHT"] = " ".PadRight(0 ); 
         dwReturn["PRASTFRME"] = " ".PadRight(3 ); 
         dwReturn["PRASTIMP"] = " ".PadRight(0 ); 
         dwReturn["PRASTVERS"] = " ".PadRight(0 ); 
         dwReturn["PRASTZOLL"] = " ".PadRight(0 ); 
         dwReturn["PRAFRGRENZ"] = " ".PadRight(0 ); 
         dwReturn["PRAFRGRME"] = " ".PadRight(3 ); 
         dwReturn["PRAVERSGRENZ"] = " ".PadRight(0 ); 
         dwReturn["PRAZTARIF"] = " ".PadRight(20 ); 
         dwReturn["PRAAENDZL"] = " ".PadRight(0 ); 
         dwReturn["PRAAENDBEN"] = " ".PadRight(8 ); 
         dwReturn["PRAAENDDAT"] = " ".PadRight(0 ); 
         dwReturn["PRANEUBEN"] = " ".PadRight(8 ); 
         dwReturn["PRANEUDAT"] = " ".PadRight(0 ); 
         dwReturn["PRAFILLER"] = " ".PadRight(4 ); 
                    #endregion
                    break;
                case "JLT":

                    break;
                default:

                    break;
            }
            if (IsConvert)
            {
                foreach (DataColumn cm in dwInput.Table.Columns)
                {
                    if (dwInput[cm.ColumnName].ToString() == "")
                        continue;
                    if (dwReturn.Table.Columns.Contains(cm.ColumnName))
                    {
                        dwReturn[cm.ColumnName] = dwInput[cm.ColumnName];
                    }
                }
            }
            return dwReturn;
        }
        public void MapPRART(ref DataRow dwLocal, DataRow dwData)
        {
            BlindMap(ref dwLocal, dwData);
        }
        public void SavePRART(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            DataSet setResult = new DataSet();
            DataTable tbLocal = null;
            DataRow dwLocal = null;
            bool flgExist = false;
            setResult = QueryPRART(dwData);
            if (setResult.Tables.Count > 0)
            {
                tbLocal = setResult.Tables[0];
                if (tbLocal.Rows.Count > 0)
                {
                    flgExist = true;
                    dwLocal = tbLocal.Rows[0];
                }
                else
                {
                    dwLocal = tbLocal.NewRow();
                }
            }
            MapPRART(ref dwLocal, dwData);

            if (!flgExist)
            {

                InsertPRART(dwLocal, ITXDBVERSION);
            }
            UpdatePRART(dwLocal);
        }
        public void InsertPRART(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "YGR":
                    or1.CommandText = "INSERT INTO PRART(VAKBMANDANT, VAKBKOLL, VAKBART, VAKBKUNDNR, VAKBFARBE, VAKBKDARTNR, VAKBKDARTBEZ, VAKBKDFARBNR, VAKBANDRUCK, VAKBMEGEW, VAKBMENGEH, VAKBGEWVON, VAKBGEWBIS, VAKBGEWCA, VAKBGEWFKT, VAKBGEWGRP, VAKBMEGFKT, VAKBMEGGRP, VAKBAENDZL, VAKBAENDBEN, VAKBAENDDAT, VAKBNEUBEN, VAKBNEUDAT, VAKBFILLER)"
                        + " VALUES (:VAKBMANDANT, :VAKBKOLL, :VAKBART, :VAKBKUNDNR, :VAKBFARBE, '                         ', '                         ', '                             ', ' ', '   ', '   ', 0, 0, ' ', '000000000000', ' ', '000000000000', ' ', 0, '        ', '000000', '        ', '      ', '                                          ')";
                    or1.Parameters.Add("VAKBMANDANT", OracleType.NVarChar).Value = dwData["VAKBMANDANT"].ToString();
                    or1.Parameters.Add("VAKBKOLL", OracleType.NVarChar).Value = dwData["VAKBKOLL"].ToString();
                    or1.Parameters.Add("VAKBART", OracleType.NVarChar).Value = dwData["VAKBART"].ToString();
                    or1.Parameters.Add("VAKBFARBE", OracleType.NVarChar).Value = dwData["VAKBFARBE"].ToString();
                    or1.Parameters.Add("VAKBKUNDNR", OracleType.NVarChar).Value = dwData["VAKBKUNDNR"].ToString();
                    break;
                //VAFMANDANT VAFKOLL VAFART VAFFARBE VAFBEZ VAFFFARBE

            }
            
            Connect2Proxy(or1);
        }
        public DataSet QueryPRART(DataRow dwData, int option = 1)
        {
            DataSet Return;
            DataSet Result = new DataSet();
            OracleCommand or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 0:
                    or1.CommandText = "SELECT * FROM PRART WHERE  ROWNUM<2 ";
                    break;
              
                case 99:
                    or1.CommandText = "SELECT * FROM PRART  WHERE ROWNUM<50";
                    break;
                default:
                    break;
            }
            Result = Connect2Proxy(or1);
            if (Result.Tables.Count > 0)
                Result.Tables[0].TableName = "PRART";
            Return = Result;
            return Return;
        }
        public void DeletePRART(DataRow dwData, int option = 1)
        {

            OracleCommand or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    or1.CommandText = "DELETE FROM PRART   WHERE  VAKBMANDANT=:VAKBMANDANT AND VAKBKOLL=:VAKBKOLL AND VAKBART =:VAKBART AND VAKBFARBE=:VAKBFARBE AND VAKBKUNDNR=:VAKBKUNDNR";
                     or1.Parameters.Add("VAKBMANDANT", OracleType.NVarChar).Value = dwData["VAKBMANDANT"].ToString();
                    or1.Parameters.Add("VAKBKOLL", OracleType.NVarChar).Value = dwData["VAKBKOLL"].ToString();
                    or1.Parameters.Add("VAKBART", OracleType.NVarChar).Value = dwData["VAKBART"].ToString();
                    or1.Parameters.Add("VAKBFARBE", OracleType.NVarChar).Value = dwData["VAKBFARBE"].ToString();
                    or1.Parameters.Add("VAKBKUNDNR", OracleType.NVarChar).Value = dwData["VAKBKUNDNR"].ToString();
                    break;
                default:
                    break;
            }
            Connect2Proxy(or1);
        } 
      
        public void UpdatePRART(DataRow dwData, string ITXDBVERSION = "50.24", int option = 1)
        {
            OracleCommand or1;
            DataSet Result = new DataSet();
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    #region====Command==== 
                    or1.CommandText = "UPDATE PRART SET "
                    +"PRAMANDANT= :PRAMANDANT,"
                    +"PRAKOLL= :PRAKOLL,"
                    +"PRAPRGRP= :PRAPRGRP,"
                    +"PRALFDNR= :PRALFDNR,"
                    +"PRAART= :PRAART,"
                    +"PRAZUSCHL= :PRAZUSCHL,"
                    +"PRABEZ= :PRABEZ,"
                    +"PRASTKZ1= :PRASTKZ1,"
                    +"PRASTMENGE1= :PRASTMENGE1,"
                    +"PRASTKZ2= :PRASTKZ2,"
                    +"PRASTMENGE2= :PRASTMENGE2,"
                    +"PRASTKZ3= :PRASTKZ3,"
                    +"PRASTMENGE3= :PRASTMENGE3,"
                    +"PRASTKZ4= :PRASTKZ4,"
                    +"PRASTMENGE4= :PRASTMENGE4,"
                    +"PRASTKZ5= :PRASTKZ5,"
                    +"PRASTMENGE5= :PRASTMENGE5,"
                    +"PRAFCANZ1= :PRAFCANZ1,"
                    +"PRAFCKG1= :PRAFCKG1,"
                    +"PRAFCANZ2= :PRAFCANZ2,"
                    +"PRAFCKG2= :PRAFCKG2,"
                    +"PRAFCANZ3= :PRAFCANZ3,"
                    +"PRAFCKG3= :PRAFCKG3,"
                    +"PRAFCANZ4= :PRAFCANZ4,"
                    +"PRAFCKG4= :PRAFCKG4,"
                    +"PRAFCANZ5= :PRAFCANZ5,"
                    +"PRAFCKG5= :PRAFCKG5,"
                    +"PRAPREH= :PRAPREH,"
                    +"PRASTWERT1= :PRASTWERT1,"
                    +"PRASTWERT2= :PRASTWERT2,"
                    +"PRASTWERT3= :PRASTWERT3,"
                    +"PRASTWERT4= :PRASTWERT4,"
                    +"PRASTWERT5= :PRASTWERT5,"
                    +"PRAABSP= :PRAABSP,"
                    +"PRAABSA= :PRAABSA,"
                    +"PRAABSART= :PRAABSART,"
                    +"PRAZUCP= :PRAZUCP,"
                    +"PRAZUCA= :PRAZUCA,"
                    +"PRAZUCART= :PRAZUCART,"
                    +"PRAZURP= :PRAZURP,"
                    +"PRAZURA= :PRAZURA,"
                    +"PRAZURART= :PRAZURART,"
                    +"PRAZU1WERT= :PRAZU1WERT,"
                    +"PRAZU1ART= :PRAZU1ART,"
                    +"PRAZU1TYP= :PRAZU1TYP,"
                    +"PRAZU1ME= :PRAZU1ME,"
                    +"PRAZU2WERT= :PRAZU2WERT,"
                    +"PRAZU2ART= :PRAZU2ART,"
                    +"PRAZU2TYP= :PRAZU2TYP,"
                    +"PRAZU2ME= :PRAZU2ME,"
                    +"PRAVGUET= :PRAVGUET,"
                    +"PRABONKZ= :PRABONKZ,"
                    +"PRARABKZ= :PRARABKZ,"
                    +"PRACOFAEH= :PRACOFAEH,"
                    +"PRAKEINEPRF= :PRAKEINEPRF,"
                    +"PRAZUART1= :PRAZUART1,"
                    +"PRAZULESEKZ1= :PRAZULESEKZ1,"
                    +"PRAZUART2= :PRAZUART2,"
                    +"PRAZULESEKZ2= :PRAZULESEKZ2,"
                    +"PRAZUART3= :PRAZUART3,"
                    +"PRAZULESEKZ3= :PRAZULESEKZ3,"
                    +"PRAZUART4= :PRAZUART4,"
                    +"PRAZULESEKZ4= :PRAZULESEKZ4,"
                    +"PRAZUART5= :PRAZUART5,"
                    +"PRAZULESEKZ5= :PRAZULESEKZ5,"
                    +"PRAZUART6= :PRAZUART6,"
                    +"PRAZULESEKZ6= :PRAZULESEKZ6,"
                    +"PRARART= :PRARART,"
                    +"PRAPREISUG= :PRAPREISUG,"
                    +"PRAORDER= :PRAORDER,"
                    +"PRAORDDAT= :PRAORDDAT,"
                    +"PRAORDBEN= :PRAORDBEN,"
                    +"PRAINDEX1= :PRAINDEX1,"
                    +"PRAINDEX2= :PRAINDEX2,"
                    +"PRAINDEX3= :PRAINDEX3,"
                    +"PRAINDEX4= :PRAINDEX4,"
                    +"PRAMEVP= :PRAMEVP,"
                    +"PRAMEVPMIN= :PRAMEVPMIN,"
                    +"PRASTPROV= :PRASTPROV,"
                    +"PRASTFRACHT= :PRASTFRACHT,"
                    +"PRASTFRME= :PRASTFRME,"
                    +"PRASTIMP= :PRASTIMP,"
                    +"PRASTVERS= :PRASTVERS,"
                    +"PRASTZOLL= :PRASTZOLL,"
                    +"PRAFRGRENZ= :PRAFRGRENZ,"
                    +"PRAFRGRME= :PRAFRGRME,"
                    +"PRAVERSGRENZ= :PRAVERSGRENZ,"
                    +"PRAZTARIF= :PRAZTARIF,"
                    +"PRAAENDZL= :PRAAENDZL,"
                    +"PRAAENDBEN= :PRAAENDBEN,"
                    +"PRAAENDDAT= :PRAAENDDAT,"
                    +"PRANEUBEN= :PRANEUBEN,"
                    +"PRANEUDAT= :PRANEUDAT,"
                    +"PRAFILLER= :PRAFILLER,"
                        + " WHERE  "
                        + "  VAKBMANDANT=:VAKBMANDANT AND VAKBKOLL=:VAKBKOLL AND VAKBART =:VAKBART AND VAKBFARBE=:VAKBFARBE AND VAKBKUNDNR=:VAKBKUNDNR";
                    #endregion

                    #region====Parameters====
          or1.Parameters.Add("PRAMANDANT", OracleType.NVarChar).Value = dwData["PRAMANDANT"].ToString(); 
          or1.Parameters.Add("PRAKOLL", OracleType.NVarChar).Value = dwData["PRAKOLL"].ToString(); 
          or1.Parameters.Add("PRAPRGRP", OracleType.NVarChar).Value = dwData["PRAPRGRP"].ToString(); 
          or1.Parameters.Add("PRALFDNR", OracleType.NVarChar).Value = dwData["PRALFDNR"].ToString(); 
          or1.Parameters.Add("PRAART", OracleType.NVarChar).Value = dwData["PRAART"].ToString(); 
          or1.Parameters.Add("PRAZUSCHL", OracleType.NVarChar).Value = dwData["PRAZUSCHL"].ToString(); 
          or1.Parameters.Add("PRABEZ", OracleType.NVarChar).Value = dwData["PRABEZ"].ToString(); 
          or1.Parameters.Add("PRASTKZ1", OracleType.NVarChar).Value = dwData["PRASTKZ1"].ToString(); 
          or1.Parameters.Add("PRASTMENGE1", OracleType.NVarChar).Value = dwData["PRASTMENGE1"].ToString(); 
          or1.Parameters.Add("PRASTKZ2", OracleType.NVarChar).Value = dwData["PRASTKZ2"].ToString(); 
          or1.Parameters.Add("PRASTMENGE2", OracleType.NVarChar).Value = dwData["PRASTMENGE2"].ToString(); 
          or1.Parameters.Add("PRASTKZ3", OracleType.NVarChar).Value = dwData["PRASTKZ3"].ToString(); 
          or1.Parameters.Add("PRASTMENGE3", OracleType.NVarChar).Value = dwData["PRASTMENGE3"].ToString(); 
          or1.Parameters.Add("PRASTKZ4", OracleType.NVarChar).Value = dwData["PRASTKZ4"].ToString(); 
          or1.Parameters.Add("PRASTMENGE4", OracleType.NVarChar).Value = dwData["PRASTMENGE4"].ToString(); 
          or1.Parameters.Add("PRASTKZ5", OracleType.NVarChar).Value = dwData["PRASTKZ5"].ToString(); 
          or1.Parameters.Add("PRASTMENGE5", OracleType.NVarChar).Value = dwData["PRASTMENGE5"].ToString(); 
          or1.Parameters.Add("PRAFCANZ1", OracleType.NVarChar).Value = dwData["PRAFCANZ1"].ToString(); 
          or1.Parameters.Add("PRAFCKG1", OracleType.NVarChar).Value = dwData["PRAFCKG1"].ToString(); 
          or1.Parameters.Add("PRAFCANZ2", OracleType.NVarChar).Value = dwData["PRAFCANZ2"].ToString(); 
          or1.Parameters.Add("PRAFCKG2", OracleType.NVarChar).Value = dwData["PRAFCKG2"].ToString(); 
          or1.Parameters.Add("PRAFCANZ3", OracleType.NVarChar).Value = dwData["PRAFCANZ3"].ToString(); 
          or1.Parameters.Add("PRAFCKG3", OracleType.NVarChar).Value = dwData["PRAFCKG3"].ToString(); 
          or1.Parameters.Add("PRAFCANZ4", OracleType.NVarChar).Value = dwData["PRAFCANZ4"].ToString(); 
          or1.Parameters.Add("PRAFCKG4", OracleType.NVarChar).Value = dwData["PRAFCKG4"].ToString(); 
          or1.Parameters.Add("PRAFCANZ5", OracleType.NVarChar).Value = dwData["PRAFCANZ5"].ToString(); 
          or1.Parameters.Add("PRAFCKG5", OracleType.NVarChar).Value = dwData["PRAFCKG5"].ToString(); 
          or1.Parameters.Add("PRAPREH", OracleType.NVarChar).Value = dwData["PRAPREH"].ToString(); 
          or1.Parameters.Add("PRASTWERT1", OracleType.NVarChar).Value = dwData["PRASTWERT1"].ToString(); 
          or1.Parameters.Add("PRASTWERT2", OracleType.NVarChar).Value = dwData["PRASTWERT2"].ToString(); 
          or1.Parameters.Add("PRASTWERT3", OracleType.NVarChar).Value = dwData["PRASTWERT3"].ToString(); 
          or1.Parameters.Add("PRASTWERT4", OracleType.NVarChar).Value = dwData["PRASTWERT4"].ToString(); 
          or1.Parameters.Add("PRASTWERT5", OracleType.NVarChar).Value = dwData["PRASTWERT5"].ToString(); 
          or1.Parameters.Add("PRAABSP", OracleType.NVarChar).Value = dwData["PRAABSP"].ToString(); 
          or1.Parameters.Add("PRAABSA", OracleType.NVarChar).Value = dwData["PRAABSA"].ToString(); 
          or1.Parameters.Add("PRAABSART", OracleType.NVarChar).Value = dwData["PRAABSART"].ToString(); 
          or1.Parameters.Add("PRAZUCP", OracleType.NVarChar).Value = dwData["PRAZUCP"].ToString(); 
          or1.Parameters.Add("PRAZUCA", OracleType.NVarChar).Value = dwData["PRAZUCA"].ToString(); 
          or1.Parameters.Add("PRAZUCART", OracleType.NVarChar).Value = dwData["PRAZUCART"].ToString(); 
          or1.Parameters.Add("PRAZURP", OracleType.NVarChar).Value = dwData["PRAZURP"].ToString(); 
          or1.Parameters.Add("PRAZURA", OracleType.NVarChar).Value = dwData["PRAZURA"].ToString(); 
          or1.Parameters.Add("PRAZURART", OracleType.NVarChar).Value = dwData["PRAZURART"].ToString(); 
          or1.Parameters.Add("PRAZU1WERT", OracleType.NVarChar).Value = dwData["PRAZU1WERT"].ToString(); 
          or1.Parameters.Add("PRAZU1ART", OracleType.NVarChar).Value = dwData["PRAZU1ART"].ToString(); 
          or1.Parameters.Add("PRAZU1TYP", OracleType.NVarChar).Value = dwData["PRAZU1TYP"].ToString(); 
          or1.Parameters.Add("PRAZU1ME", OracleType.NVarChar).Value = dwData["PRAZU1ME"].ToString(); 
          or1.Parameters.Add("PRAZU2WERT", OracleType.NVarChar).Value = dwData["PRAZU2WERT"].ToString(); 
          or1.Parameters.Add("PRAZU2ART", OracleType.NVarChar).Value = dwData["PRAZU2ART"].ToString(); 
          or1.Parameters.Add("PRAZU2TYP", OracleType.NVarChar).Value = dwData["PRAZU2TYP"].ToString(); 
          or1.Parameters.Add("PRAZU2ME", OracleType.NVarChar).Value = dwData["PRAZU2ME"].ToString(); 
          or1.Parameters.Add("PRAVGUET", OracleType.NVarChar).Value = dwData["PRAVGUET"].ToString(); 
          or1.Parameters.Add("PRABONKZ", OracleType.NVarChar).Value = dwData["PRABONKZ"].ToString(); 
          or1.Parameters.Add("PRARABKZ", OracleType.NVarChar).Value = dwData["PRARABKZ"].ToString(); 
          or1.Parameters.Add("PRACOFAEH", OracleType.NVarChar).Value = dwData["PRACOFAEH"].ToString(); 
          or1.Parameters.Add("PRAKEINEPRF", OracleType.NVarChar).Value = dwData["PRAKEINEPRF"].ToString(); 
          or1.Parameters.Add("PRAZUART1", OracleType.NVarChar).Value = dwData["PRAZUART1"].ToString(); 
          or1.Parameters.Add("PRAZULESEKZ1", OracleType.NVarChar).Value = dwData["PRAZULESEKZ1"].ToString(); 
          or1.Parameters.Add("PRAZUART2", OracleType.NVarChar).Value = dwData["PRAZUART2"].ToString(); 
          or1.Parameters.Add("PRAZULESEKZ2", OracleType.NVarChar).Value = dwData["PRAZULESEKZ2"].ToString(); 
          or1.Parameters.Add("PRAZUART3", OracleType.NVarChar).Value = dwData["PRAZUART3"].ToString(); 
          or1.Parameters.Add("PRAZULESEKZ3", OracleType.NVarChar).Value = dwData["PRAZULESEKZ3"].ToString(); 
          or1.Parameters.Add("PRAZUART4", OracleType.NVarChar).Value = dwData["PRAZUART4"].ToString(); 
          or1.Parameters.Add("PRAZULESEKZ4", OracleType.NVarChar).Value = dwData["PRAZULESEKZ4"].ToString(); 
          or1.Parameters.Add("PRAZUART5", OracleType.NVarChar).Value = dwData["PRAZUART5"].ToString(); 
          or1.Parameters.Add("PRAZULESEKZ5", OracleType.NVarChar).Value = dwData["PRAZULESEKZ5"].ToString(); 
          or1.Parameters.Add("PRAZUART6", OracleType.NVarChar).Value = dwData["PRAZUART6"].ToString(); 
          or1.Parameters.Add("PRAZULESEKZ6", OracleType.NVarChar).Value = dwData["PRAZULESEKZ6"].ToString(); 
          or1.Parameters.Add("PRARART", OracleType.NVarChar).Value = dwData["PRARART"].ToString(); 
          or1.Parameters.Add("PRAPREISUG", OracleType.NVarChar).Value = dwData["PRAPREISUG"].ToString(); 
          or1.Parameters.Add("PRAORDER", OracleType.NVarChar).Value = dwData["PRAORDER"].ToString(); 
          or1.Parameters.Add("PRAORDDAT", OracleType.NVarChar).Value = dwData["PRAORDDAT"].ToString(); 
          or1.Parameters.Add("PRAORDBEN", OracleType.NVarChar).Value = dwData["PRAORDBEN"].ToString(); 
          or1.Parameters.Add("PRAINDEX1", OracleType.NVarChar).Value = dwData["PRAINDEX1"].ToString(); 
          or1.Parameters.Add("PRAINDEX2", OracleType.NVarChar).Value = dwData["PRAINDEX2"].ToString(); 
          or1.Parameters.Add("PRAINDEX3", OracleType.NVarChar).Value = dwData["PRAINDEX3"].ToString(); 
          or1.Parameters.Add("PRAINDEX4", OracleType.NVarChar).Value = dwData["PRAINDEX4"].ToString(); 
          or1.Parameters.Add("PRAMEVP", OracleType.NVarChar).Value = dwData["PRAMEVP"].ToString(); 
          or1.Parameters.Add("PRAMEVPMIN", OracleType.NVarChar).Value = dwData["PRAMEVPMIN"].ToString(); 
          or1.Parameters.Add("PRASTPROV", OracleType.NVarChar).Value = dwData["PRASTPROV"].ToString(); 
          or1.Parameters.Add("PRASTFRACHT", OracleType.NVarChar).Value = dwData["PRASTFRACHT"].ToString(); 
          or1.Parameters.Add("PRASTFRME", OracleType.NVarChar).Value = dwData["PRASTFRME"].ToString(); 
          or1.Parameters.Add("PRASTIMP", OracleType.NVarChar).Value = dwData["PRASTIMP"].ToString(); 
          or1.Parameters.Add("PRASTVERS", OracleType.NVarChar).Value = dwData["PRASTVERS"].ToString(); 
          or1.Parameters.Add("PRASTZOLL", OracleType.NVarChar).Value = dwData["PRASTZOLL"].ToString(); 
          or1.Parameters.Add("PRAFRGRENZ", OracleType.NVarChar).Value = dwData["PRAFRGRENZ"].ToString(); 
          or1.Parameters.Add("PRAFRGRME", OracleType.NVarChar).Value = dwData["PRAFRGRME"].ToString(); 
          or1.Parameters.Add("PRAVERSGRENZ", OracleType.NVarChar).Value = dwData["PRAVERSGRENZ"].ToString(); 
          or1.Parameters.Add("PRAZTARIF", OracleType.NVarChar).Value = dwData["PRAZTARIF"].ToString(); 
          or1.Parameters.Add("PRAAENDZL", OracleType.NVarChar).Value = dwData["PRAAENDZL"].ToString(); 
          or1.Parameters.Add("PRAAENDBEN", OracleType.NVarChar).Value = dwData["PRAAENDBEN"].ToString(); 
          or1.Parameters.Add("PRAAENDDAT", OracleType.NVarChar).Value = dwData["PRAAENDDAT"].ToString(); 
          or1.Parameters.Add("PRANEUBEN", OracleType.NVarChar).Value = dwData["PRANEUBEN"].ToString(); 
          or1.Parameters.Add("PRANEUDAT", OracleType.NVarChar).Value = dwData["PRANEUDAT"].ToString(); 
          or1.Parameters.Add("PRAFILLER", OracleType.NVarChar).Value = dwData["PRAFILLER"].ToString(); 
                    #endregion
                    break; 
                default:
                    break;
            }


            Connect2Proxy(or1);
        }
    }
}
